﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace MSSClient.Model
{
        public class ListModle : INotifyPropertyChanged
        {
            public event PropertyChangedEventHandler PropertyChanged;

            private ObservableCollection<Content> names = new ObservableCollection<Content>();

            private bool popupIsOpen = false;

            public bool PopupIsOpen
            {
                get
                {
                    return popupIsOpen;
                }

                set
                {
                    popupIsOpen = value;

                    this.PropertyChanged(this, new PropertyChangedEventArgs("PopupIsOpen"));
                }
            }

            public ObservableCollection<Content> Names
            {
                get
                {
                    return this.names;
                }

                set
                {
                    this.names = value;

                    this.PropertyChanged(this, new PropertyChangedEventArgs("Names"));
                }
            }
        }

        public class Content
        {
            private string name = string.Empty;
            private string password = string.Empty;

            public string Name
            {
                get
                {
                    return this.name;
                }
                set
                {
                    name = value;
                }
            }

            public string Password
            {
                get
                {
                    return this.password;
                }
                set
                {
                    password = value;
                }
            }
        }
    }

